//
//  TravelsModel.m
//  MemoryTravel
//
//  Created by dllo on 15/12/21.
//  Copyright © 2015年 fcx. All rights reserved.
//

#import "TravelsModel.h"

@implementation TravelsModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{

    if ([key isEqualToString:@"id"]) {

        self.pID = value;
    }
}

- (void)setUser:(NSMutableDictionary *)user{

    if (_user != user) {
        _user = user;
    }

    self.anotherUser = [AnotherUser modelWithDictionary:_user];
    self.anotherUser = [AnotherUser modelWithDictionary:user];
}

@end
